package com.eos.control.action.customer;

import com.eos.control.action.base.AbstractBaseAction;

public class DeleteCategoryAction extends AbstractBaseAction {
	private static final long serialVersionUID = -5181860849704464512L;
	private Long modelId;

	public void setModelId(Long modelId) {
		this.modelId = modelId;
	}

	@Override
	public String execute() {
		 try{
			 if(null == modelId || modelId.longValue() <=0){
				 statusCode = "300";
				 message = "参数错误,删除失败!";
			 }else{
				 statusCode = "200";
				 message = "删除成功!";
			 }
		 }catch(Exception ex){
			 ex.printStackTrace();
			 statusCode = "300";
			 message = "系统异常,删除失败!";
		 }
		 return SUCCESS;
	}

}
